package com.jsu.springboot_crop.dao;

import com.jsu.springboot_crop.entity.Purchase;
import com.jsu.springboot_crop.model.MyPurchase;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author Humura
 * @Date 2023/8/26 11:50
 * @Version 1.0
 */
@Mapper
public interface PurchaseDao {
    int insertSelective(Purchase record);
    Purchase selectNewPurchaseId(@Param("ownName")String ownName);
    List<MyPurchase> selectByPurchase(@Param("ownName") String ownName);

}
